<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<link rel="stylesheet" href="css/common.css" type="text/css" />

<link href="css/adminstyle.css" rel="stylesheet" type="text/css">

<title>管理区域</title>

<script src="js/js.js"></script>
<script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
<script  language="javascript" type="text/javascript" src="js/jquery-1.9.1.min.js"></script>

<script>

function delc(id){

	if(confirm('确认要删除此栏目，将删除所属子栏目及信息'))	{

		self.location.href='user_delete.html?id='+id;

	}

}

function submits1(value){

	var check_flg = false;

	$("input:checkbox[name='id[]']:checked").each(function(){

            check_flg = true; 

    })

    if(check_flg==true){

		document.getElementById('form').action=value;

		document.getElementById('form').submit();

	}else{

		alert('请选中相应的人员进行操作');        	

    }

	

}



function openTab(url,height,width){

	window.open (url,'newwindow','height='+height+',width='+width+',top=0,left=0,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no'); 

}



function submits2(value){

	document.getElementById('form').action=value;

	document.getElementById('form').submit();

}</script>

</head>



<body>
<div id="man_zone">
<??>

<div style="background-color:#FFFFFF ">

<div class="search_condition">

<div style="margin-top:10px;margin-bottom:10px;">

<form method="get">

&nbsp;&nbsp;&nbsp;关键字 <input name="key_word" type="text" value="<?=getParamValue('key_word')?>" />
&nbsp;注册时间
<input name="start_time" type="text" onClick="WdatePicker()" value="<?=getParamValue('start_time')?>" />
-
<input onClick="WdatePicker()" name="end_time" type="text"  value="<?=getParamValue('end_time')?>" />
状态
<select name="status" >
 	   <option value="">请选择</option>
      <?=page_modifier_options($page_status_option,getParamValue('status'))?>
</select>
用户类型
<select name="user_type" >
 	   <option value="">请选择</option>
      <?=page_modifier_options($page_user_type_option,getParamValue('user_type'))?>
</select>
注册类型
<select name="register_type" >
 	   <option value="">请选择</option>
      <?=page_modifier_options($page_register_type_option,getParamValue('register_type'))?>
</select>
用户类别
<select name="user_kind" >
		<option value="">请选择</option>
      <?=page_modifier_options($page_user_kind_option,getParamValue('user_kind'))?>
</select>

&nbsp;&nbsp;&nbsp;

<input value="搜索" class="PublicBot" name="" type="submit" />

&nbsp;&nbsp;&nbsp;

<input class="PublicBot" name="" type="button" onclick="window.location.href='user_add.html'" value="添加" />

</form>

</div>

</div>



<form method="get" id="form" action="user_delete.html">

  <table width="98%" border="0" align="center"  cellpadding="3" cellspacing="1" class="tableborder">

    <tr class="header">

    <td width="2%"></td>

      <td width="6%">Email</td>

      <td width="6%">类别</td>

      <td width="6%">用户名</td>

      <td width="6%">Skype</td>

      <td width="6%">QQ</td>

      <td width="6%">QQ昵称</td>
      
      <td width="6%">手机</td>

      <td width="6%">英语等级</td>

      <td width="6%">用户类型</td>

      <td width="6%">积分</td>
      
      <td width="6%">注册时间</td>

   <td width="6%">备注</td>

   <td width="6%">状态</td>
      <td align="center" width="18%">编辑</td>

    </tr>

    <?

    foreach($list as $v){

	?>

    <tr bgcolor="#FFFFFF">

          <td align="center"><input type="checkbox" name="id[]" id="checkbox" value="<?=$v['id']?>"></td>

      <td><a href="user_info.html?id=<?=$v['id']?>"><?=$v['email']?></a></td>

      <td align="center"><?=$page_user_kind_option[$v['user_kind']]?></td>

      <td align="center"><?=$v['english_name']?></td>

      <td align="center"><?=$v['skype_id']?></td>

      <td align="center"><?=$v['qq']?></td>

      <td align="center"><?=$v['nickname']?><?if(trim($v['openid'])!=''){?><font color="red"><br>QQ注册</font><?}?></td>

      <td align="center">
      <?=$v['phone']?>
      <?if($v['real_phone']==SMS_SERVER_2){?>
      	<a href="javaScript:openTab('user_smsCodeInfo.html?id=<?=$v['id']?>','250','500')"><font color="red">已验证</font></a>
      <?}?>
	  <?if($v['phone']!=''&&$v['real_phone']==SMS_SERVER_1){?>
      	<a href="javaScript:openTab('user_smsCodeInfo.html?id=<?=$v['id']?>','250','500')">未验证</a>
      <?}?>
      </td>

      <td align="center"><?=getStr($level_pair, $v['level'])?></td>

      <td align="center"><?=$v['user_type_name']?>
      <br>
      	<a href="javaScript:openTab('user_updateClassInfo.html?id=<?=$v['id']?>','400','600')">修正课程</a>
      </td>

      <td align="center"><?=$v['integral']?></td>

      <td align="center"><?=date('Y-m-d H:i:s',$v['register_time'])?></td>

      <td align="center"><?if($v['content']!=""){ ?><a href="javaScript:void(0);" onClick="javaScript:openTab('user_detailInfo.html?id=<?=$v['id']?>','400','600');">查看</a><?}?></td>

      <td align="center"><?=$v['status']?></td>

      <td align="center">
      <a onclick=delc(<?=$v['id']?>) href="javaScript:void(0);" style="display: none">删除</a>&nbsp;&nbsp;
      <a href="user_add.html?id=<?=$v['id']?>">修改</a>
      <a class="front_order" href="javaScript:void(0)"; id2="<?=$v['id']?>">管理</a>
      </td>

    </tr>

    <?

	}

	?>

 <tr bgcolor="#FFFFFF">

 <td align="center"><input type="checkbox" name="chkall" id="checkbox"  onClick="CheckAll(this.form)"></td>

 <td colspan="14">

 <!-- <input type="button"  class="PublicBot" id="button" value="发站内信"  onClick="submits2('user_envoyerLetterStation.html')">

  <input type="button"  class="PublicBot" id="button" value="发邮件" onClick="submits2('user_envoyerLetterStation.html')">

  <input type="button" name="delete" class="PublicBot" id="button" value="发短信" onClick="submits2('user_envoyerLetterStation.html')">---->

  <input type="button" class="PublicBot" name="delete" id="button" value="批量设置跟踪人" onClick="submits1('user_updateTrackPeople.html')">&nbsp;&nbsp;&nbsp;

<input type="button" class="PublicBot" name="delete"  style="display: none" id="button" value="批量删除" onClick="submits1('user_delete.html')"> &nbsp;&nbsp;&nbsp;<?  echo $page; ?>

 </td>

 </tr>

  </table>

 </form>
<script>
$(".front_order").click(function(){
	 var id=$(this).attr("id2");
	 var url = '<?=SITE_URL?>'+'user_home.htm?jsession_id='+id;
	 var url2 = '<?=SITE_URL?>'+'user_clearFrontOrder.html';
	 var obj = new Object();
	 obj.name='100课堂'

	 var s = window.showModalDialog(url,obj,"dialogWidth=1000px;dialogHeight=600px");
	 if(s.length>0){
		 if(s=='front_order_complete'){//清楚USER_SESSION;
			var postJsondata = {"front_order_status":s}
			$.ajax({
				 type:'POST',
				 url:url2,
				 data:postJsondata,
				 dataType: 'json',
				 async:false
				});
		 }
	 }
})	
</script>
</div>

</div>

</body>

</html>

